/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2016 All Rights Reserved.
 */
package com.fulihui.information.core.repository;

import com.fulihui.information.dto.InfoGoodFeedbackRecordDTO;
import com.fulihui.information.request.GoodFeedbackQueryPageRequest;

import java.util.List;

/**
 * 有益反馈  Repository
 * @author zhangyingjie
 * @version $Id: v 0.1 2017年05月15日 15:00 zhangyingjie Exp $
 */
public interface GoodFeedbackRepository {
    /**
     * 新增 有益反馈
     * @param dto
     * @return
     */
    boolean create(InfoGoodFeedbackRecordDTO dto);

    /**
     * 根据ID 查询一条 有益反馈
     * @param id
     * @return
     */
    InfoGoodFeedbackRecordDTO querySingle(Long id);

    /**
     * 修改
     * @param dto
     * @return
     */
    boolean update(InfoGoodFeedbackRecordDTO dto);

    /**
     * 分页查询
     * @param request
     * @return
     */
    List<InfoGoodFeedbackRecordDTO> queryPage(GoodFeedbackQueryPageRequest request);

    /**
     * 总计
     * @param request
     * @return
     */
    int queryPageCount(GoodFeedbackQueryPageRequest request);

    /**
     * 根据ids 查询有益反馈，返回list
     * @param ids
     * @return
     */
    List<InfoGoodFeedbackRecordDTO> queryByIds(List<Integer> ids);

    /**
     * 根据ids和status批量更新
     * @param ids
     * @param status
     * @return
     */
    boolean batchUpdateByIds(List<Integer> ids,String status,String operator);
}
